home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / CIncludes / Notification.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-13  |  1.1 KB  |  54 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3. Created: Thursday, September 7, 1989 at 5:07 PM
  4.     Notification.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.    1989
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __NOTIFICATION__
  15. #define __NOTIFICATION__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifndef __OSUTILS__
  22. #include <OSUtils.h>
  23. #endif
  24.  
  25. #define nmType 8
  26.  
  27. struct NMRec {
  28.     QElemPtr qLink;     /*next queue entry*/
  29.     short qType;        /*queue type -- ORD(nmType) = 8*/
  30.     short nmFlags;        /*reserved*/
  31.     long nmPrivate;     /*reserved*/
  32.     short nmReserved;    /*reserved*/
  33.     short nmMark;        /*item to mark in Apple menu*/
  34.     Handle nmSIcon;     /*handle to small icon*/
  35.     Handle nmSound;     /*handle to sound record*/
  36.     StringPtr nmStr;    /*string to appear in alert*/
  37.     ProcPtr nmResp;     /*pointer to response routine*/
  38.     long nmRefCon;        /*for application use*/
  39. };
  40.  
  41. typedef struct NMRec NMRec;
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45. pascal OSErr NMInstall(QElemPtr nmReqPtr)
  46.     = {0x205F,0xA05E,0x3E80};
  47. pascal OSErr NMRemove(QElemPtr nmReqPtr)
  48.     = {0x205F,0xA05F,0x3E80};
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52.  
  53. #endif
  54.